<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const goPath = (path) => {
  router.push(path)
}
</script>
<template>
  <div class="home">
    <div class="header">webrtc音视频</div>
    <div class="content">
      <div class="box" @click="goPath('/webrtc')">webrtc示例</div>
      <div class="box" @click="goPath('/owt')">owt示例</div>
      <div class="box" @click="goPath('/peer')">peerjs示例</div>
    </div>
  </div>
</template>
<style scoped lang="scss">
.home {
  width: 100vw;
  height: 100vh;
  background-color: #1e2831;
  color: #f5f5f5;
  font-size: 14px;
  .header {
    height: 50px;
    width: 100%;
    background-color: rgb(48, 64, 81);
    text-align: center;
    line-height: 50px;
  }
  .content {
    display: flex;
    justify-content: center;
    padding-top: 30px;
  }
  .box {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    margin: 0 20px;
    line-height: 150px;
    text-align: center;
    background-color: #28333d;
    cursor: pointer;
    &:hover {
      background-color: rgb(48, 64, 81);
    }
  }
}
</style>
